#!/bin/bash
# 本脚本是用来产生 rbac-v1.tar.gz

# 跳到rbac路径
cd ..
mvn clean
mvn package
mkdir rbac-v1
cp ./system/target/rbac.jar ./rbac-v1
cd rbac-vue
rm -rf dist
node build/build.js
tar -cvf dist.tar dist
cd ..
mv ./rbac-vue/dist.tar ./rbac-v1
mv ./rbac-vue/dist ./rbac-v1
cp ./sql/rbac.sql ./rbac-v1
cp ./deploy/readme.txt ./rbac-v1
cp ./deploy/startup.sh ./rbac-v1
cp ./deploy/shutdown.sh ./rbac-v1

tar -cvf rbac-v1.tar.gz rbac-v1



